module.exports=async()=>{
    let appFn = require("../server/index")
    let app = await appFn()
    let server = app.listen();
    let request = require('supertest').agent(server);
    return {
        server,
        request
    }
}